package com.lagou.edu.service.impl;

import com.lagou.edu.dao.ResumeDao;
import com.lagou.edu.pojo.Resume;
import com.lagou.edu.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResumeServiceImpl implements ResumeService {

    @Autowired
    private ResumeDao resumeDao;

    @Override
    public List<Resume> findResumeList() {
        return resumeDao.findResumeList();
    }

    @Override
    public int insertResume(String address, String name, String phone) {
        return resumeDao.insertResume(address, name, phone);
    }

    @Override
    public void updateResume(Long id, String address, String name, String phone) {
        resumeDao.updateResume(id, address, name, phone);
    }

    @Override
    public void delResume(Long id) {
        resumeDao.delResume(id);
    }

    @Override
    public Resume findOne(Long id) {
        return resumeDao.findOne(id);
    }

}
